<template>
  <el-menu
      default-active="1"
      class="custom-menu"
      @select="select">
      <el-menu-item index="1">
        <i class="el-icon-menu"></i>
        <span slot="title">Vue.observable(Object)</span>
      </el-menu-item>
      <el-menu-item index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">$listeners</span>
      </el-menu-item>
      <el-menu-item index="3">
        <i class="el-icon-document"></i>
        <span slot="title">component组件</span>
      </el-menu-item>
      <el-menu-item index="4">
        <i class="el-icon-setting"></i>
        <span slot="title">render函数</span>
      </el-menu-item>
    </el-menu>
</template>

<script>
import observableNav from "../observable-nav.js";
export default {
  data() { 
    return {

    }
  },
  methods: {
    select(index) { 
      observableNav.index = index;
    }
  }
}
</script>

<style>
.custom-menu {
    text-align: left;
}
</style>